package com.yuantu.judiciary.model.vo;

import com.yuantu.judiciary.model.dto.EntYearReportGuaranteeDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

/**
 * 企业年报对外担保
 *
 * @author syw
 * @since 2023-07-20
 **/
@Data
@ApiModel("企业年报对外担保")
@Builder
public class EntReportGuaranteeVO {
    @ApiModelProperty("年报 ID") private String ancheid;
    @ApiModelProperty("债务人") private String mortgagor;
    @ApiModelProperty("保证的期间") private String guarapperiod;
    @ApiModelProperty("债权人") private String more;
    @ApiModelProperty("主债权数额") private String priclasecam;
    @ApiModelProperty("履行债务的期限自") private String pefperform;
    @ApiModelProperty("履行债务的期限至") private String pefperto;
    @ApiModelProperty("主债权种类") private String priclaseckind;
    @ApiModelProperty("保证的方式") private String gatype;

    public static EntReportGuaranteeVO getReportGuarantee(EntYearReportGuaranteeDTO data) {
        return EntReportGuaranteeVO.builder()
                .ancheid(data.getANCHEID())
                .mortgagor(data.getMORTGAGOR())
                .guarapperiod(data.getGUARAPPERIOD())
                .more(data.getMORE())
                .priclasecam(data.getPRICLASECAM())
                .pefperform(data.getPEFPERFORM())
                .pefperto(data.getPEFPERTO())
                .priclaseckind(data.getPRICLASECKIND())
                .gatype(data.getGATYPE())
                .build();
    }

}
